home *** CD-ROM | disk | FTP | other *** search
/ Mac Cube 4: Multimedia Applications / MacCube Volume 4: Multimedia Applications.iso / Graphics / Sparkle241 folder / (Docs) / ReadMe Sound < prev    next >
Text File  |  1995-03-21  |  4KB  |  70 lines

  1. This version of Sparkle supports sound in a limited fashion. A sound file can be 
  2. associated with an MPEG (or a set of PICTs) and played while the MPEG plays. 
  3. The good news is that part of the support I have is completely fleshed out. 
  4. You can play sound backwards or forwards, at variable rates, and with random access. 
  5. Sound playback is (with the warning about drivers below) continuous even when the 
  6. disk is going beserk pulling data in at 16bits/stereo/44.1kHz. I had a vicious
  7. lesson in what can and can't be done with the mac interrupt system while putting 
  8. this all together but it now all runs beautifully at interrupt level and I can't 
  9. make it crash.
  10.  
  11. But here are the limitations.
  12.  
  13. * The only sound format supported for now is AIFF. If you want to use sounds in 
  14.     .snd format (sounds you can click on and play in the Finder) or in .WAV 
  15.     format (the sounds that usually accompany PC MPEGs) you will have to convert the
  16.     sound to AIFF. I use Balthazar for converting WAV to snd, and Sample Editor 
  17.     for converting from snd to AIFF. There are many other ftpable sound programs 
  18.     out there that do the same. I'm told SoundApp 1.4 is a good choice.
  19.     Note also that AIFF does have one advantage. When you capture audio from a 
  20.     CD using QuickTime, the file produced is AIFF.
  21.     Note also that compressed AIFF IS supported. 
  22.     
  23. * Suppose Sparkle is opening a file waves.mpg. It will look in the same folder 
  24.     for a file waves.AIFF. If it finds such a file, you'll get audio. If it doesn't
  25.     find the file, you'll get no audio. If you are opening a set of pictures 
  26.     called waves.0, waves.1, etc, then again the audio file must be names waves.AIFF
  27.     and must be in the same directory as the picture files.
  28.     This probably is relevant to programs that use Sparkle, like NCSA Mosaic.
  29.     I don't know how Mosaic copes when it finds an MPEG/WAV pair at a WWW site.
  30.     If the Mosaic authors want to contact me to consider some protocol (apple
  31.     events or whatever) for handling this, feel free to mail me.
  32.  
  33. * On my Quadra 610, 8bit mono sound at 11KHz works without a hitch. 16bit stereo sound
  34.     at 44.1kHz (sixteen times as much data) works but with a noticable (though 
  35.     not unbearable) slowing down of the video.
  36.     The sound is read in using a funky triple buffering scheme with async IO and 
  37.     async sound. This works beautifully on my mac's internal hard drive. However
  38.     on my Syquest cartridge with the APS 3.05 driver sometimes the sound can stutter.
  39.     As far as I can tell this is because the APS driver does very naughty things 
  40.     like switching off interrupts for long periods of time (at the same time 
  41.     that the sound stops, the mouse also stops moving briefly). 
  42.     If anyone has suggestions/comments on the subject, please let me know. My guess
  43.     is that the only fix is to get APS to release drivers which don't disable
  44.     interrupts for so long.
  45.     Also, of course, since we're using async IO, use SCSI Manager 4.3 for better
  46.     performance.
  47.     
  48. * The .WAV sounds I have tried occasionally have jerks in them. These were recorded 
  49.     in the sound and are not Sparkle's fault. Also the .WAVs I've tried don't 
  50.     seem to sync very well with the video, like the audio was recorded with a slight
  51.     delay relative to the video. Again I can't do much about that.
  52.     
  53. * The next steps are to flesh out the current sound support---allow opening .WAV and 
  54.     .snd files, saving the sound track to a QT movie, extracting the sound track 
  55.     from a QT movie, things like that. Those will, with luck, all be pretty 
  56.     trivial and I can soon get on dealing with real MPEG compressed audio. 
  57.     
  58. * There is now a menu item, Set Frame Rate ..., under the Playback menu. This allows 
  59.     you to set the frame rate of an MPEG/set of PICTs to what you wish. Note that 
  60.     this only affects video playback, not audio. Note also that when Sparkle opens 
  61.     an MPEG or PICT set with an associated sound file, the duration of the video 
  62.     is scaled to match the duration of the audio. Normally this is what one would 
  63.     want and so you shouldn't need to touch the Set Frame Rate ... option much if you
  64.     have associated sound. If you have an MPEG without sound and it appears to play 
  65.     way too fast, you may want to set the frame rate to something lower.
  66.     
  67. Finally a thank you to ABBA for providing great music for me to use as test AIFF files
  68. while doing all of this. I know it's not fashionable/cool to admit to liking ABBA 
  69. but, I do, so tough :-)
  70.